[INFO] cloning repository https://github.com/rosieparfait/rpbc
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rosieparfait/rpbc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frosieparfait%2Frpbc", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frosieparfait%2Frpbc'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3de071aa1199b5e7cfd7431660b11c587b160cbf
[INFO] checking rosieparfait/rpbc against master#4eb62535fc12dd1a63fd43a4173e224e79313c4d for pr-158816
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frosieparfait%2Frpbc" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/rosieparfait/rpbc
[INFO] finished tweaking git repo https://github.com/rosieparfait/rpbc
[INFO] tweaked toml for git repo https://github.com/rosieparfait/rpbc written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/rosieparfait/rpbc on toolchain 4eb62535fc12dd1a63fd43a4173e224e79313c4d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/rosieparfait/rpbc already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded cocoa v0.22.0
[INFO] [stderr]   Downloaded core-graphics v0.21.0
[INFO] [stderr]   Downloaded pitch-detector v0.3.1
[INFO] [stderr]   Downloaded rdev v0.5.3
[INFO] [stderr]   Downloaded wasm-bindgen-shared v0.2.93
[INFO] [stderr]   Downloaded transpose v0.2.3
[INFO] [stderr]   Downloaded wasm-bindgen-futures v0.4.43
[INFO] [stderr]   Downloaded apodize v1.0.0
[INFO] [stderr]   Downloaded mouse_position v0.1.4
[INFO] [stderr]   Downloaded primal-check v0.3.4
[INFO] [stderr]   Downloaded fitting v0.3.0
[INFO] [stderr]   Downloaded wasm-bindgen-macro v0.2.93
[INFO] [stderr]   Downloaded coreaudio-sys v0.2.15
[INFO] [stderr]   Downloaded strength_reduce v0.2.4
[INFO] [stderr]   Downloaded wasm-bindgen-macro-support v0.2.93
[INFO] [stderr]   Downloaded libloading v0.8.5
[INFO] [stderr]   Downloaded wasm-bindgen-backend v0.2.93
[INFO] [stderr]   Downloaded wasm-bindgen v0.2.93
[INFO] [stderr]   Downloaded matrixmultiply v0.2.4
[INFO] [stderr]   Downloaded js-sys v0.3.70
[INFO] [stderr]   Downloaded bytes v1.7.1
[INFO] [stderr]   Downloaded alsa v0.9.0
[INFO] [stderr]   Downloaded indexmap v2.4.0
[INFO] [stderr]   Downloaded cc v1.1.13
[INFO] [stderr]   Downloaded bindgen v0.69.4
[INFO] [stderr]   Downloaded regex v1.10.6
[INFO] [stderr]   Downloaded rustfft v6.2.0
[INFO] [stderr]   Downloaded ndarray v0.13.1
[INFO] [stderr]   Downloaded syn v2.0.74
[INFO] [stderr]   Downloaded unicode-width v0.1.13
[INFO] [stderr]   Downloaded web-sys v0.3.70
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d94e31642f9041d16ef431aae2fe2b62adcc389a1b3ad07e95c713d66bea35c4
[INFO] running `Command { std: "docker" "start" "d94e31642f9041d16ef431aae2fe2b62adcc389a1b3ad07e95c713d66bea35c4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d94e31642f9041d16ef431aae2fe2b62adcc389a1b3ad07e95c713d66bea35c4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d94e31642f9041d16ef431aae2fe2b62adcc389a1b3ad07e95c713d66bea35c4" "/opt/rustwide/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d94e31642f9041d16ef431aae2fe2b62adcc389a1b3ad07e95c713d66bea35c4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d94e31642f9041d16ef431aae2fe2b62adcc389a1b3ad07e95c713d66bea35c4" "/opt/rustwide/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]    Compiling alsa-sys v0.3.1
[INFO] [stderr]    Compiling ndarray v0.13.1
[INFO] [stderr]     Checking rawpointer v0.2.1
[INFO] [stderr]    Compiling rustfft v6.2.0
[INFO] [stderr]    Compiling syn v2.0.74
[INFO] [stderr]    Compiling x11 v2.21.0
[INFO] [stderr]    Compiling anyhow v1.0.86
[INFO] [stderr]     Checking matrixmultiply v0.2.4
[INFO] [stderr]     Checking strength_reduce v0.2.4
[INFO] [stderr]     Checking bitflags v2.6.0
[INFO] [stderr]    Compiling cpal v0.15.3
[INFO] [stderr]     Checking either v1.13.0
[INFO] [stderr]     Checking x11-dl v2.21.0
[INFO] [stderr]     Checking unicode-width v0.1.13
[INFO] [stderr]     Checking apodize v1.0.0
[INFO] [stderr]     Checking console v0.15.8
[INFO] [stderr]     Checking itertools v0.10.5
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling num-complex v0.2.4
[INFO] [stderr]     Checking json v0.12.4
[INFO] [stderr]     Checking alsa v0.9.0
[INFO] [stderr]     Checking rdev v0.5.3
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking approx v0.3.2
[INFO] [stderr]     Checking num-complex v0.4.6
[INFO] [stderr]     Checking transpose v0.2.3
[INFO] [stderr]     Checking primal-check v0.3.4
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]     Checking thiserror v1.0.63
[INFO] [stderr]     Checking mouse_position v0.1.4
[INFO] [stderr]     Checking fitting v0.3.0
[INFO] [stderr]     Checking pitch-detector v0.3.1
[INFO] [stderr]     Checking rpbc v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Event` and `SimulateError`
[INFO] [stdout]   --> src/main.rs:12:30
[INFO] [stdout]    |
[INFO] [stdout] 12 | use rdev::{simulate, Button, Event, EventType, Key, SimulateError};
[INFO] [stdout]    |                              ^^^^^                  ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:59:20
[INFO] [stdout]    |
[INFO] [stdout] 59 |                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout]    |                    ^                                               ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 59 -                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout] 59 +                 if flags & FlagValues::DisableControl as u128 == 0 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:65:20
[INFO] [stdout]    |
[INFO] [stdout] 65 |                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout]    |                    ^                                               ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 65 -                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout] 65 +                 if flags & FlagValues::DisableControl as u128 == 0 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:101:24
[INFO] [stdout]     |
[INFO] [stdout] 101 |                     if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout]     |                        ^                                               ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 101 -                     if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout] 101 +                     if flags & FlagValues::DisableControl as u128 == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:130:16
[INFO] [stdout]     |
[INFO] [stdout] 130 |             if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout]     |                ^                                               ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 130 -             if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout] 130 +             if flags & FlagValues::DisableControl as u128 == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:136:20
[INFO] [stdout]     |
[INFO] [stdout] 136 |                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout]     |                    ^                                               ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 136 -                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout] 136 +                 if flags & FlagValues::DisableControl as u128 == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Event` and `SimulateError`
[INFO] [stdout]   --> src/main.rs:12:30
[INFO] [stdout]    |
[INFO] [stdout] 12 | use rdev::{simulate, Button, Event, EventType, Key, SimulateError};
[INFO] [stdout]    |                              ^^^^^                  ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:59:20
[INFO] [stdout]    |
[INFO] [stdout] 59 |                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout]    |                    ^                                               ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 59 -                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout] 59 +                 if flags & FlagValues::DisableControl as u128 == 0 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/main.rs:65:20
[INFO] [stdout]    |
[INFO] [stdout] 65 |                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout]    |                    ^                                               ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 65 -                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout] 65 +                 if flags & FlagValues::DisableControl as u128 == 0 {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:101:24
[INFO] [stdout]     |
[INFO] [stdout] 101 |                     if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout]     |                        ^                                               ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 101 -                     if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout] 101 +                     if flags & FlagValues::DisableControl as u128 == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:130:16
[INFO] [stdout]     |
[INFO] [stdout] 130 |             if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout]     |                ^                                               ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 130 -             if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout] 130 +             if flags & FlagValues::DisableControl as u128 == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:136:20
[INFO] [stdout]     |
[INFO] [stdout] 136 |                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout]     |                    ^                                               ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 136 -                 if (flags & FlagValues::DisableControl as u128 == 0) {
[INFO] [stdout] 136 +                 if flags & FlagValues::DisableControl as u128 == 0 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:165:29
[INFO] [stdout]     |
[INFO] [stdout] 165 |                         let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                             ----^^^^^^^^
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:197:29
[INFO] [stdout]     |
[INFO] [stdout] 197 |                         let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                             ----^^^^^^^^
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `l_sn` is never read
[INFO] [stdout]    --> src/main.rs:372:32
[INFO] [stdout]     |
[INFO] [stdout] 372 |             let mut l_sn:f64 = 0.0;
[INFO] [stdout]     |                                ^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 375 |                 l_sn = f64::from(data[4*i]);
[INFO] [stdout]     |                 --------------------------- `l_sn` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `r_sn` is never read
[INFO] [stdout]    --> src/main.rs:373:32
[INFO] [stdout]     |
[INFO] [stdout] 373 |             let mut r_sn:f64 = 0.0;
[INFO] [stdout]     |                                ^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 376 |                 r_sn = f64::from(data[4*i+1]);
[INFO] [stdout]     |                 ----------------------------- `r_sn` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `r_pitch` is never read
[INFO] [stdout]    --> src/main.rs:384:13
[INFO] [stdout]     |
[INFO] [stdout] 384 |             r_pitch = detector.detect_pitch(&r_channel, 44100.0).unwrap();
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `l_pitch` is never read
[INFO] [stdout]    --> src/main.rs:385:13
[INFO] [stdout]     |
[INFO] [stdout] 385 |             l_pitch = detector.detect_pitch(&l_channel, 44100.0).unwrap();
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout]    --> src/main.rs:332:17
[INFO] [stdout]     |
[INFO] [stdout] 332 |             Err(err) => panic!("Warning: no pitches.json file found. Run program with -c flag to calibrate and generate file.")
[INFO] [stdout]     |                 ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `button`
[INFO] [stdout]    --> src/main.rs:338:14
[INFO] [stdout]     |
[INFO] [stdout] 338 |         for (button, pitch) in json_entries {
[INFO] [stdout]     |              ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout]    --> src/main.rs:347:17
[INFO] [stdout]     |
[INFO] [stdout] 347 | ...   Err(err) => panic!("Warning: no coords.json file found. Run program with -c flag to calibrate and generate file. (TIP: Also u...
[INFO] [stdout]     |           ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `spot`
[INFO] [stdout]    --> src/main.rs:353:14
[INFO] [stdout]     |
[INFO] [stdout] 353 |         for (spot, coord) in json_entries {
[INFO] [stdout]     |              ^^^^ help: if this is intentional, prefix it with an underscore: `_spot`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/main.rs:50:28
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]    |                            ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/main.rs:79:68
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 let new_difference_in_pitch = f64::abs(avg_pitch - PITCHES.get(j).unwrap());
[INFO] [stdout]    |                                                                    ^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:165:29
[INFO] [stdout]     |
[INFO] [stdout] 165 |                         let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                             ----^^^^^^^^
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:197:29
[INFO] [stdout]     |
[INFO] [stdout] 197 |                         let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                             ----^^^^^^^^
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:103:25
[INFO] [stdout]     |
[INFO] [stdout] 103 |                         simulate(&event);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 103 |                         let _ = simulate(&event);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:114:27
[INFO] [stdout]     |
[INFO] [stdout] 114 |             let x_range = PITCHES.get(15).unwrap() - PITCHES.get(13).unwrap();
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:114:54
[INFO] [stdout]     |
[INFO] [stdout] 114 |             let x_range = PITCHES.get(15).unwrap() - PITCHES.get(13).unwrap();
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:115:27
[INFO] [stdout]     |
[INFO] [stdout] 115 |             let y_range = PITCHES.get(14).unwrap() - PITCHES.get(12).unwrap();
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:115:54
[INFO] [stdout]     |
[INFO] [stdout] 115 |             let y_range = PITCHES.get(14).unwrap() - PITCHES.get(12).unwrap();
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:116:65
[INFO] [stdout]     |
[INFO] [stdout] 116 |             let x_coord = f64::max(0.0, f64::min(1.0,(l_pitch - PITCHES.get(13).unwrap()) / x_range));
[INFO] [stdout]     |                                                                 ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:117:65
[INFO] [stdout]     |
[INFO] [stdout] 117 |             let y_coord = f64::max(0.0, f64::min(1.0,(r_pitch - PITCHES.get(12).unwrap()) / y_range));
[INFO] [stdout]     |                                                                 ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:127:35
[INFO] [stdout]     |
[INFO] [stdout] 127 | ...   let mouse_x_coord = (*MOUSECOORDS.get(0).unwrap()) as f64 + (x_coord * (MOUSECOORDS.get(2).unwrap() - MOUSECOORDS.get(0).unwr...
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:127:85
[INFO] [stdout]     |
[INFO] [stdout] 127 | ...et(0).unwrap()) as f64 + (x_coord * (MOUSECOORDS.get(2).unwrap() - MOUSECOORDS.get(0).unwrap()) as f64);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:127:115
[INFO] [stdout]     |
[INFO] [stdout] 127 | ...ord * (MOUSECOORDS.get(2).unwrap() - MOUSECOORDS.get(0).unwrap()) as f64);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:128:35
[INFO] [stdout]     |
[INFO] [stdout] 128 | ...   let mouse_y_coord = (*MOUSECOORDS.get(1).unwrap()) as f64 + (y_coord * (MOUSECOORDS.get(3).unwrap() - MOUSECOORDS.get(1).unwr...
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:128:85
[INFO] [stdout]     |
[INFO] [stdout] 128 | ...et(1).unwrap()) as f64 + (y_coord * (MOUSECOORDS.get(3).unwrap() - MOUSECOORDS.get(1).unwrap()) as f64);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:128:115
[INFO] [stdout]     |
[INFO] [stdout] 128 | ...ord * (MOUSECOORDS.get(3).unwrap() - MOUSECOORDS.get(1).unwrap()) as f64);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:164:25
[INFO] [stdout]     |
[INFO] [stdout] 164 |                         PITCHES.push(GLOBAL_FLOAT_A);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:165:44
[INFO] [stdout]     |
[INFO] [stdout] 165 |                         let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                                            ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:167:92
[INFO] [stdout]     |
[INFO] [stdout] 167 |                         print!("    Frequency: {:.2}Hz. To continue, let go of button.\n", GLOBAL_FLOAT_A);
[INFO] [stdout]     |                                                                                            ^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:171:40
[INFO] [stdout]     |
[INFO] [stdout] 171 |                     let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                                        ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:197:44
[INFO] [stdout]     |
[INFO] [stdout] 197 |                         let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                                            ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:199:25
[INFO] [stdout]     |
[INFO] [stdout] 199 |                         PITCHES.push(GLOBAL_FLOAT_A);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:200:94
[INFO] [stdout]     |
[INFO] [stdout] 200 |                         print!("    Frequencies: {:.2}Hz. To continue, let go of screen.\n", GLOBAL_FLOAT_A);
[INFO] [stdout]     |                                                                                              ^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:204:40
[INFO] [stdout]     |
[INFO] [stdout] 204 |                     let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                                        ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:232:68
[INFO] [stdout]     |
[INFO] [stdout] 232 | ...                   json_file[*BUTTONS.get(i).unwrap()] =(*PITCHES.get(i).unwrap()).into();
[INFO] [stdout]     |                                                              ^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:235:25
[INFO] [stdout]     |
[INFO] [stdout] 235 |                         file.write_all(json_file.pretty(4).as_bytes());
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 235 |                         let _ = file.write_all(json_file.pretty(4).as_bytes());
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:255:44
[INFO] [stdout]     |
[INFO] [stdout] 255 |                     json_mouse["left"] = (*MOUSECOORDS.get(0).unwrap()).into();
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:256:43
[INFO] [stdout]     |
[INFO] [stdout] 256 |                     json_mouse["top"] = (*MOUSECOORDS.get(1).unwrap()).into();
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:257:45
[INFO] [stdout]     |
[INFO] [stdout] 257 |                     json_mouse["right"] = (*MOUSECOORDS.get(2).unwrap()).into();
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:258:46
[INFO] [stdout]     |
[INFO] [stdout] 258 |                     json_mouse["bottom"] = (*MOUSECOORDS.get(3).unwrap()).into();
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:267:54
[INFO] [stdout]     |
[INFO] [stdout] 267 |                         Mouse::Position { x, y } => {MOUSECOORDS.push(x); MOUSECOORDS.push(y)},
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:267:75
[INFO] [stdout]     |
[INFO] [stdout] 267 |                         Mouse::Position { x, y } => {MOUSECOORDS.push(x); MOUSECOORDS.push(y)},
[INFO] [stdout]     |                                                                           ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:340:17
[INFO] [stdout]     |
[INFO] [stdout] 340 |                 PITCHES.push(pitch.as_f64().unwrap());
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:355:17
[INFO] [stdout]     |
[INFO] [stdout] 355 |                 MOUSECOORDS.push(coord.as_i32().unwrap());
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `l_sn` is never read
[INFO] [stdout]    --> src/main.rs:372:32
[INFO] [stdout]     |
[INFO] [stdout] 372 |             let mut l_sn:f64 = 0.0;
[INFO] [stdout]     |                                ^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 375 |                 l_sn = f64::from(data[4*i]);
[INFO] [stdout]     |                 --------------------------- `l_sn` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `r_sn` is never read
[INFO] [stdout]    --> src/main.rs:373:32
[INFO] [stdout]     |
[INFO] [stdout] 373 |             let mut r_sn:f64 = 0.0;
[INFO] [stdout]     |                                ^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 376 |                 r_sn = f64::from(data[4*i+1]);
[INFO] [stdout]     |                 ----------------------------- `r_sn` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `r_pitch` is never read
[INFO] [stdout]    --> src/main.rs:384:13
[INFO] [stdout]     |
[INFO] [stdout] 384 |             r_pitch = detector.detect_pitch(&r_channel, 44100.0).unwrap();
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value captured by `l_pitch` is never read
[INFO] [stdout]    --> src/main.rs:385:13
[INFO] [stdout]     |
[INFO] [stdout] 385 |             l_pitch = detector.detect_pitch(&l_channel, 44100.0).unwrap();
[INFO] [stdout]     |             ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: did you mean to capture by reference instead?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout]    --> src/main.rs:332:17
[INFO] [stdout]     |
[INFO] [stdout] 332 |             Err(err) => panic!("Warning: no pitches.json file found. Run program with -c flag to calibrate and generate file.")
[INFO] [stdout]     |                 ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `button`
[INFO] [stdout]    --> src/main.rs:338:14
[INFO] [stdout]     |
[INFO] [stdout] 338 |         for (button, pitch) in json_entries {
[INFO] [stdout]     |              ^^^^^^ help: if this is intentional, prefix it with an underscore: `_button`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout]    --> src/main.rs:347:17
[INFO] [stdout]     |
[INFO] [stdout] 347 | ...   Err(err) => panic!("Warning: no coords.json file found. Run program with -c flag to calibrate and generate file. (TIP: Also u...
[INFO] [stdout]     |           ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `spot`
[INFO] [stdout]    --> src/main.rs:353:14
[INFO] [stdout]     |
[INFO] [stdout] 353 |         for (spot, coord) in json_entries {
[INFO] [stdout]     |              ^^^^ help: if this is intentional, prefix it with an underscore: `_spot`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/main.rs:50:28
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]    |                            ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/main.rs:79:68
[INFO] [stdout]    |
[INFO] [stdout] 79 |                 let new_difference_in_pitch = f64::abs(avg_pitch - PITCHES.get(j).unwrap());
[INFO] [stdout]    |                                                                    ^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:103:25
[INFO] [stdout]     |
[INFO] [stdout] 103 |                         simulate(&event);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 103 |                         let _ = simulate(&event);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:114:27
[INFO] [stdout]     |
[INFO] [stdout] 114 |             let x_range = PITCHES.get(15).unwrap() - PITCHES.get(13).unwrap();
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:114:54
[INFO] [stdout]     |
[INFO] [stdout] 114 |             let x_range = PITCHES.get(15).unwrap() - PITCHES.get(13).unwrap();
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:115:27
[INFO] [stdout]     |
[INFO] [stdout] 115 |             let y_range = PITCHES.get(14).unwrap() - PITCHES.get(12).unwrap();
[INFO] [stdout]     |                           ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:115:54
[INFO] [stdout]     |
[INFO] [stdout] 115 |             let y_range = PITCHES.get(14).unwrap() - PITCHES.get(12).unwrap();
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:116:65
[INFO] [stdout]     |
[INFO] [stdout] 116 |             let x_coord = f64::max(0.0, f64::min(1.0,(l_pitch - PITCHES.get(13).unwrap()) / x_range));
[INFO] [stdout]     |                                                                 ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:117:65
[INFO] [stdout]     |
[INFO] [stdout] 117 |             let y_coord = f64::max(0.0, f64::min(1.0,(r_pitch - PITCHES.get(12).unwrap()) / y_range));
[INFO] [stdout]     |                                                                 ^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:127:35
[INFO] [stdout]     |
[INFO] [stdout] 127 | ...   let mouse_x_coord = (*MOUSECOORDS.get(0).unwrap()) as f64 + (x_coord * (MOUSECOORDS.get(2).unwrap() - MOUSECOORDS.get(0).unwr...
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:127:85
[INFO] [stdout]     |
[INFO] [stdout] 127 | ...et(0).unwrap()) as f64 + (x_coord * (MOUSECOORDS.get(2).unwrap() - MOUSECOORDS.get(0).unwrap()) as f64);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:127:115
[INFO] [stdout]     |
[INFO] [stdout] 127 | ...ord * (MOUSECOORDS.get(2).unwrap() - MOUSECOORDS.get(0).unwrap()) as f64);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:128:35
[INFO] [stdout]     |
[INFO] [stdout] 128 | ...   let mouse_y_coord = (*MOUSECOORDS.get(1).unwrap()) as f64 + (y_coord * (MOUSECOORDS.get(3).unwrap() - MOUSECOORDS.get(1).unwr...
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:128:85
[INFO] [stdout]     |
[INFO] [stdout] 128 | ...et(1).unwrap()) as f64 + (y_coord * (MOUSECOORDS.get(3).unwrap() - MOUSECOORDS.get(1).unwrap()) as f64);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:128:115
[INFO] [stdout]     |
[INFO] [stdout] 128 | ...ord * (MOUSECOORDS.get(3).unwrap() - MOUSECOORDS.get(1).unwrap()) as f64);
[INFO] [stdout]     |                                         ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:164:25
[INFO] [stdout]     |
[INFO] [stdout] 164 |                         PITCHES.push(GLOBAL_FLOAT_A);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:165:44
[INFO] [stdout]     |
[INFO] [stdout] 165 |                         let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                                            ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:167:92
[INFO] [stdout]     |
[INFO] [stdout] 167 |                         print!("    Frequency: {:.2}Hz. To continue, let go of button.\n", GLOBAL_FLOAT_A);
[INFO] [stdout]     |                                                                                            ^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:171:40
[INFO] [stdout]     |
[INFO] [stdout] 171 |                     let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                                        ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:197:44
[INFO] [stdout]     |
[INFO] [stdout] 197 |                         let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                                            ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:199:25
[INFO] [stdout]     |
[INFO] [stdout] 199 |                         PITCHES.push(GLOBAL_FLOAT_A);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:200:94
[INFO] [stdout]     |
[INFO] [stdout] 200 |                         print!("    Frequencies: {:.2}Hz. To continue, let go of screen.\n", GLOBAL_FLOAT_A);
[INFO] [stdout]     |                                                                                              ^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:204:40
[INFO] [stdout]     |
[INFO] [stdout] 204 |                     let mut terminal = TERM.clone().unwrap();
[INFO] [stdout]     |                                        ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:232:68
[INFO] [stdout]     |
[INFO] [stdout] 232 | ...                   json_file[*BUTTONS.get(i).unwrap()] =(*PITCHES.get(i).unwrap()).into();
[INFO] [stdout]     |                                                              ^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:235:25
[INFO] [stdout]     |
[INFO] [stdout] 235 |                         file.write_all(json_file.pretty(4).as_bytes());
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 235 |                         let _ = file.write_all(json_file.pretty(4).as_bytes());
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:255:44
[INFO] [stdout]     |
[INFO] [stdout] 255 |                     json_mouse["left"] = (*MOUSECOORDS.get(0).unwrap()).into();
[INFO] [stdout]     |                                            ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:256:43
[INFO] [stdout]     |
[INFO] [stdout] 256 |                     json_mouse["top"] = (*MOUSECOORDS.get(1).unwrap()).into();
[INFO] [stdout]     |                                           ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:257:45
[INFO] [stdout]     |
[INFO] [stdout] 257 |                     json_mouse["right"] = (*MOUSECOORDS.get(2).unwrap()).into();
[INFO] [stdout]     |                                             ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:258:46
[INFO] [stdout]     |
[INFO] [stdout] 258 |                     json_mouse["bottom"] = (*MOUSECOORDS.get(3).unwrap()).into();
[INFO] [stdout]     |                                              ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:267:54
[INFO] [stdout]     |
[INFO] [stdout] 267 |                         Mouse::Position { x, y } => {MOUSECOORDS.push(x); MOUSECOORDS.push(y)},
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:267:75
[INFO] [stdout]     |
[INFO] [stdout] 267 |                         Mouse::Position { x, y } => {MOUSECOORDS.push(x); MOUSECOORDS.push(y)},
[INFO] [stdout]     |                                                                           ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:340:17
[INFO] [stdout]     |
[INFO] [stdout] 340 |                 PITCHES.push(pitch.as_f64().unwrap());
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/main.rs:355:17
[INFO] [stdout]     |
[INFO] [stdout] 355 |                 MOUSECOORDS.push(coord.as_i32().unwrap());
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.14s
[INFO] running `Command { std: "docker" "inspect" "d94e31642f9041d16ef431aae2fe2b62adcc389a1b3ad07e95c713d66bea35c4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d94e31642f9041d16ef431aae2fe2b62adcc389a1b3ad07e95c713d66bea35c4", kill_on_drop: false }`
[INFO] [stdout] d94e31642f9041d16ef431aae2fe2b62adcc389a1b3ad07e95c713d66bea35c4
